<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
  <base href="<?php echo $settings["base_url"]; ?>" />
  <meta name="Date" content="<?php echo Util::Now(); ?>">
  <meta http-equiv="Content-Language" content="EN-US">
  <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  <meta name="description" content="Tufts Student Contact System">
  <meta name="keywords" content="tufts, academic, student, contact">
  <title>Tufts SCS</title>

  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  <?php echo Template::RenderAddedJsCss(); ?>
  <!--[if IE]>
    <link rel="stylesheet" type="text/css" href="/media/css/ie.css?<?php echo $settings["version"]; ?>" />
  <![endif]-->
</head>
<body>
  <div id="wrapper">
    <div id="container">
      <div id="head">
        <div id="user_nav">
          <?php if ($_SESSION["loggedin"]): ?>
            <div>
              Welcome! <?php echo ucwords($_SESSION["username"]); ?>. 
              <?php if ($_SESSION["username"] == "admin"): ?>
              <a href="?q=admin">Manage Accounts</a>
              <?php endif; ?>
            </div>
            <div><a href="?q=student">Student Records</a></div>
            <div><a href="?q=reminders">My Reminders</a></div>
            <div><a href="?q=login/logout">Log Out</a></div>
          <?php else: ?>
            Not Logged In.
          <?php endif; ?>
        </div>
      </div>
      <div id="mid">
        <?php echo $content; ?>
      </div>
      <div id="bot"></div>
      <div id="footer">&copy; 2011 TUFTS SCS.</div>
    </div>
  </div>
</body>
</html>